package org.nox.helloseries.server.services.configuration.impl;

import java.util.List;

import org.nox.helloseries.domain.Serie;
import org.nox.helloseries.factory.HelloSeriesServiceFactory;
import org.nox.helloseries.rest.client.configuration.RESTConfigurationService;
import org.nox.helloseries.server.services.configuration.SerieConfigurationService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DefaultSerieConfigurationService implements SerieConfigurationService
{
    private static final Logger LOG = LoggerFactory.getLogger( SerieConfigurationService.class );

    private RESTConfigurationService restConfigurationService = HelloSeriesServiceFactory.createOrGetService( RESTConfigurationService.class );

    @Override
    public void saveSeries( List<Serie> seriesARechercherUpdated )
    {
        LOG.info( "Mise à jour des séries" );
        restConfigurationService.saveSeries( seriesARechercherUpdated );
        LOG.info( "Mise à jour des séries terminée" );
    }

}
